﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SeDuce.IDAL;
using System.Data;

namespace SeDuce.BLL
{
    public class PicBLL
    {
        private static readonly IPicDAL dal = SeDuce.DALFactory.DataAccess.CreatePicDAL();

        public DataTable GetPics()
        {
            return dal.GetPics();
        }

        public DataTable PicByPicID(int picID)
        {
            return dal.PicByPicID(picID);
        }

        public DataTable PicsByProductID(int productID)
        {
            return dal.PicsByProductID(productID);
        }

        public bool InsertPics(List<Model.Pic> pics)
        {
            return dal.InsertPics(pics);
        }

        public bool UpdatePics(List<Model.Pic> pics)
        {
            return dal.UpdatePics(pics);
        }

        public bool DeletePics(List<int> picIDs)
        {
            return dal.DeletePics(picIDs);
        }
    }
}
